import Router from "vue-router"
import index from "@/views/main/index.vue";
import login from "@/views/login/login";
import register from "@/views/register/register";
import pastOne from "@/views/past/pastOne"
export default new Router({
   routes: [
        {
            path:"/",
            component:index
        },
        {
          path:"/login",
          component:login
        },
        {
          path:"/register",
          component:register
        },
		{
		  path:"/past",
		  component:pastOne
		}
        /* {
            path:"/main",
            component:main,
            children:[
                {
                   path:"/showOne", // path前面加了/，那么跳到这个页面时候地址前面不用再加/main，即：ip:端口/#/showOne即可
                   name:"one",
                   component:showOne
                },
                {
                   path:"showTwo/:id", // path前面没有/，那么访问这个页面时地址前面要加/main，而且一定要有id参数，即：ip:端口/#/main/showTwo/id
                   name:"two",
                   component:showTwo
                }
            ]
        }, */
    ]

})
